package com.wb.mas.utils.response;

public class ResultException extends RuntimeException {

    private String respMsg;

    private int respCode;

    public ResultException(int respCode, String respMsg) {

        this.respMsg = respMsg;

        this.respCode = respCode;

    }

    public String getRespMsg() {

        return respMsg;

    }

    public void setRespMsg(String respMsg) {

        this.respMsg = respMsg;

    }

    public int getRespCode() {

        return respCode;

    }

    public void setRespCode(int respCode) {

        this.respCode = respCode;

    }

    @Override
    public String getMessage() {
        return "error code:" + respCode + ",error msg:" + respMsg != null ? respMsg : "";
    }


}
